<%@tag import="java.util.HashSet"%>
<%@tag import="java.util.Set"%>
<%@tag import="java.sql.SQLException"%>
<%@tag import="java.sql.DriverManager"%>
<%@tag import="java.sql.Connection"%>

<%@ attribute name="rules" required="true"%>
<%@ attribute name="val" required="true" %>

<%

	Set<String> accsess = (HashSet<String>) request.getSession().getAttribute("currentAccsess");
	
    request.setAttribute(getJspContext().getAttribute("val").toString(), false);
	String[] denny = getJspContext().getAttribute("rules").toString().split(","); 
	for (String d : denny) {
		if (accsess.contains(d)) {
	        request.setAttribute(getJspContext().getAttribute("val").toString(), true);
		    break;
		}
	}

%>